package com.dh.spring.thread;

/**
 * 线程池线程工厂功能接口
 * */
public interface CustomThreadFactory {

    //TODO 执行线程创建
    void execute(CustomThreadPool customThreadPool, CustomTaskBlockQueue customTaskBlockQueue, Class cls);

    //TODO 执行线程创建
    Thread createThread(Object object);

    //TODO 获取活跃线程数
    int getActiveThreadSize(CustomThreadPool customThreadPool);

    //TODO 移除线程
    void removeThread(CustomThreadPool customThreadPool);
}
